<!DOCTYPE html>
<html lang="zh-CN">
 <head> 
  <meta charset="utf-8" /> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ --> 
  <meta name="description" content="" /> 
  <meta name="author" content="" /> 
  <link rel="icon" href="./img/asset-favicon.ico" /> 
  <title>社交-吐槽</title>
  <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css" /> 
  <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css" /> 
  <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css" /> 
  <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css" /> 
  <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css" /> 
  <link rel="stylesheet" type="text/css" href="./css/widget-base.css" /> 
  <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css" /> 
  <link rel="stylesheet" type="text/css" href="./plugins/bootstrap/dist/css/bootstrap.min.css" /> 
  <link rel="stylesheet" type="text/css" href="./css/page-sj-spit-detail.css" />
  <script type="text/javascript" src="js/host.js"></script>
 <script type="text/javascript" src="js/vue-2.5.16.js"></script>
  <script type="text/javascript" src="js/axios-0.18.0.min.js"></script>
  <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
 </head>
 <body>
 <div id="app">
  <div class="wrapper"> 
   <!--引用组件--> 
   <!--头部导航--> 
   <header> 
    <div class="sui-navbar"> 
     <div class="navbar-inner"> 
      <a href="index-logined.html" class="sui-brand"><img src="./img/asset-logo-black.png" alt="社交" /></a> 
      <ul class="sui-nav"> 
       <li class="active"><a href="./headline-logined.html">头条</a></li> 
       <li><a href="./qa-logined.html">问答</a></li> 
       <li><a href="./activity-index.html">活动</a></li> 
       <li><a href="./makeFriends-index.html">交友</a></li> 
       <li><a href="./spit-index.html">吐槽</a></li> 
       <li><a href="./recruit-index.html">招聘</a></li> 
      </ul> 
      <form class="sui-form sui-form pull-left"> 
       <input type="text" placeholder="输入关键词..." /> 
       <span class="btn-search fa fa-search"></span> 
      </form> 
      <div class="sui-nav pull-right info">
         <div v-if="username">
      <a href="person-loginsign.html" class="login-text" style=" text-decoration: none;">用户：{{ username }}</a>
       <a href="person-loginsign.html" class="login-text" @click="log_out" style=" text-decoration: none;">退出登录</a>
        </div>
       <div v-else>
        <a href="person-loginsign.html" class="login-text" style=" text-decoration: none;">| 登录注册</a>
       </div>
       <!--<li><a href="./other-notice.html" target="_blank" class="notice">通知</a></li>-->
       <li><a href="./other-notice.html" target="_blank" class="notice"></a></li>
       <!--<li class="hover"> <span class="fa fa-plus "></span>-->
        <!--<ul class="hoverinfo"> -->
         <!--<li><i class="fa fa-share-alt" aria-hidden="true"></i> <a href="./headline-submit.html">去分享</a></li> -->
         <!--<li><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="./qa-submit.html" target="_blank">提问题</a></li> -->
         <!--<li><i class="fa fa-comments" aria-hidden="true"></i><a href="./spit-submit.html" target="_blank">去吐槽</a></li> -->
         <!--<li><i class="fa fa-heartbeat" aria-hidden="true"></i> <a href="./makeFriends-submit.html" target="_blank">发约会</a></li> -->
        <!--</ul> </li> -->
       <!--<li><a href="./person-homepage.html" target="_blank" class="homego"><img src="./img/widget-photo.png" alt="用户头像" /></a></li>-->
      </div> 
     </div> 
    </div> 
   </header> 
   <!--引用组件--> 
   <!--两列布局--> 
   <div class="wrapper tc-detail"> 
    <div class="fl left-list"> 
     <div class="tc-detail"> 
      <!-- 标题区 --> 
      <div class="detail-tit"> 
       <div class="detail-author"> 
        <a href="javascript:;">{{tsukkomi.user}}</a> 发布
       </div> 
       <div class="detail-content"> 
        <!--<p>{{ tsukkomi.content }}</p>-->
           <!--html标签不显示-->
       <p><span v-Html="tsukkomi.content"></span></p>
        <img :src="tsukkomi.image_url" alt="" />
       </div>
      <div class="comment_time fl">{{ tsukkomi.create_time }}</div>
       <div class="detail-tool"> 
        <ul> 
         <!--<li><span class="star"  ><i class="fa fa-thumbs-o-up" aria-hidden="true" @click="like_tsukkomi" :id="tsukkomi.id" ></i> {{ tsukkomi.like_count }}</span></li>-->
         <li><span class="star"  ><i class="fa fa-thumbs-o-up" aria-hidden="true" ></i> {{ tsukkomi.like_count }}</span></li>
         <li><a href="javascript:void(0)" data-toggle="modal" data-target="#shareModal"><i class="fa fa-share-alt" aria-hidden="true" ></i>{{ tsukkomi.share_count }}</a></li>
         <li><a data-toggle="modal" data-target="#remarkModal"><i class="fa fa-commenting" aria-hidden="true"></i>{{ tsukkomi.comment_count }}</a></li>
        </ul> 
       </div> 
      </div>
      <!-- 评论区 -->
      <div class="comment-area">

       <div class="comment-tit"> 
        <span>网友评论</span>
       </div>
        <form action="" class="comment_form" @submit.prevent="comment_submit">
            <textarea id="comment_text" placeholder="请发表您的评论" class="comment_input" v-model="comment_content"></textarea>
            <input type="submit" name="" value="评 论" class="comment_sub">
        </form>
       <ul class="comment-list">
        <li v-for="(comment,index) in comments">
         <div class="item-photo"> 
          <img src="./img/widget-widget-photo.png" alt="" /> 
         </div> 
         <div class="item-content"> 
          <p class="author"><a href="javascript:;">{{ comment.user }}</a> 评论</p>
          <p class="content">{{ comment.message }}</p>
             <div class="comment_time fl">{{ comment.create_time }}</div>
         </div> 
         <div class="item-thumb">
        <i class="fa fa-thumbs-o-up" aria-hidden="true" @click="like_comment" :id="comment.id"></i>{{ comment.like_count }}
          <!--回复标签-->
         <a href="javascript:;" class="comment_reply fr" @click="show_reply" :id="comment.id" >回复</a>
         <!--回复评论-->
        <form class="reply_form fl"  @submit.prevent="on_submit" @reset.prevent="on_submit" style="display: none" >
            <textarea class="reply_input" v-model="message" placeholder="请输入要回复的内容"></textarea>
           <input type="submit" value="回复" class="reply_sub fr" >
            <input type="reset" name=""  value="取消" class="reply_cancel fr">
        </form>
         </div>
        <!--评论的内容-->
        <div class="reply_text_con fr" v-for="son_comment in comment.son_comments">
          <p class="author"><a href="javascript:;">{{ son_comment.user }}</a> 回复:{{ comment.user }}</p>
          <p class="content">{{ son_comment.message }}</p>
         <div class="comment_time fl">{{ son_comment.create_time }}</div>
         </div>

        </li>
       </ul>
       <!--翻页-->
     <div class="pagenation">
      <a v-show="previous" @click="on_page(previous)">上一页</a>
      <a v-for="num in page_nums" @click="on_page(num)" :class="num==page?'active':''">{{num}}</a>
      <a v-show="next" @click="on_page(next)">下一页></a>
    </div>

      </div>
     </div>
    </div>
    <div class="fl right-tag"> 
     <div class="block-btn"> 
      <p>来个匿名吐槽，发泄一下你心中的怒火吧！</p> 
      <a class="sui-btn btn-block btn-share" href="./spit-submit.html" target="_blank">发吐槽</a> 
     </div> 
    </div> 
    <div class="clearfix"></div> 
   </div> 
  </div>
  <script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js"></script> 
  <script type="text/javascript" charset="utf-8" src="http://v3.jiathis.com/code/jia.js"></script>

 <script type="text/javascript" src="js/spit-detail.js"></script>

 </div>
 </body>
</html>